Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BYOC] DNNL C_SRC Fix #14267

Merged
merged 1 commit into from
Mar 10, 2023
Merged

[BYOC] DNNL C_SRC Fix #14267

merged 1 commit into from
Mar 10, 2023

Conversation

huajsj
Copy link
Contributor

@huajsj huajsj commented Mar 10, 2023

Symptom:
After setting DNNL="C_SRC" to generate C code, the compiler reported an error that the function "BindToCallNodeArgs" was missing and there was a problem with linking "dtype_dl2dnnl". Another issue is the compile complain for ambiguous "GetRootCall".

After fixing the compilation issue, when executing relay.build, an error occurred complaining "Check failed: const_var_ndarray_ .count(var) > 0 (0 vs. 0)"

Solution:
Update the cmake file and change the codegen.cc.

Symptom:
After setting DNNL="C_SRC" to generate C code, the compiler
reported an error that the function "BindToCallNodeArgs"
was missing and there was a problem with linking "dtype_dl2dnnl".
Another issue is the compile complain for ambiguous "GetRootCall".

After fixing the compilation issue, when executing relay.build,
an error occurred complaining "Check failed: const_var_ndarray_
.count(var) > 0 (0 vs. 0)"

Solution:
Update the cmake file and change the codegen.cc.
@tvm-bot
Copy link
Collaborator

tvm-bot commented Mar 10, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@masahi masahi merged commit 302cee9 into apache:main Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants